﻿
namespace IDEAMS.model
{
    public class CreateFileMode
    {
        public EM_CreateFileMode createFileMode { get; set; }  // 生成文件模式

        public int tmSpan { get; set; }  // 时间间隔(createFileMode == CREATE_BY_TIME 时有效)
        public int fileSize { get; set; }  // 文件大小(createFileMode == CREATE_BY_SIZE 时有效)
        public bool isAutoDel { get; set; }

        public CreateFileMode(CreateFileMode fileModel)
        {
            createFileMode = fileModel.createFileMode;
            tmSpan = fileModel.tmSpan;
            fileSize = fileModel.fileSize;
            isAutoDel = fileModel.isAutoDel;
        }

        public CreateFileMode Clone()
        {
            return new CreateFileMode(this);
        }

        public CreateFileMode()
        {
            createFileMode = EM_CreateFileMode.CREATE_BY_SIZE;
            fileSize = 1000;
            tmSpan = 1;
            isAutoDel = false;
        }
    }
}
